home *** CD-ROM | disk | FTP | other *** search
- Short: Convert CR-LF-TAB & spaces in a text file
- Uploader: Vincenzo Barbarulo (barbarulo.vince@infinito.it)
- Author: Vincenzo Barbarulo (barbarulo.vince@infinito.it)
- Type: text/misc
- Date: 20-Jan-2002
- Version: 1.1
- Replaces: text/misc/OneLine.lha
-
-
-
- Introduction
- ------------
- I've written this program because no freeware program on Aminet converts a
- text file in "One Line" only!.
-
- WHY DO THIS??
-
- So, this program is useful when you want to import a text in a DTP or WP program
- and you want to put the text in a number of columns greater or different from
- the original text.
-
- In that case you have to go at the end-line, "DEL" last character and
- (not always) press "SPACE", for all the "end-line" of the text.
- OneLine do that for you and converts at one time CR,LF,TAB & dblSPACES!!
-
-
-
- Requirements
- ------------
- Any Amiga with at least OS 2.04 and some Mb of RAM (!) if you want
- to convert/save big files into RAM. (see History)
-
-
-
- Features
- --------
- - FREEWARE. No requesters and no expiry date.
- - Detect CR, LF, TAB
- - Detect multiples spaces
- - Detect the spaces before comma
-
- ...in a text file of any length.
-
-
- I've tested this program on my:
-
- A4000, CyberStormMKIII 060/50, 128Mb RAM, CVisionPPC, OS 3.5,
- HD9.1Gb ATLAS SCSI-UW, HD10.5Gb Samsung IDE, CanonBJC-4400,
- MustekParagon-1200SP, CDROM 48x
-
- Speed NOTE:
- On my A4000 OneLine converts and saves a file of ~600Kb of text in ~2 - ~2.5 secs
- and another of ~3500Kb in ~13 secs, but the speed depends by the file
- (number of the spaces and/or TAB).
-
-
-
- Usage
- -----
- From shell only:
-
- |^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|-> (any order)
- Type: Oneline <in_file_path> <out_file_path> -t -d -c . . . STDOUT
-
- <in_file_path> Name and path of the file to convert
-
- <out_file_path> Name and path of the destination file
-
- -t TAB option: if it's present, the program erases the TAB
- characters too
-
- -d Multiples Spaces Option: if it's present, the program
- erases the multiples spaces adjacents
-
- -c Comma OPTIMIZE: if it's ON, OneLine erases the spaces
- before the ',' chr. and add a space after ',' if isn't present.
-
- STDOUT is the file "RAM:STDFile_OneLine.txt" that is used if
- isn't destination file specified
-
-
-
-
- To do
- -----
- Add "Directory scan" option; (to convert a whole directory of text files);
-
- Add "Asl requester"; *
-
- Add a GUI & an icon for WB usage; *
-
- Some speed improvements
-
- *(Perhaps!: I don't know if could be very useful.)
-
-
-
-
- Legal stuff
- -----------
- OneLine is freeware. It may be distributed freely as long as
- no modifications are made to the executable and to this document.
-
- ...but if you send me an EMail also empty(!) with the subject
- "OneLine user!" you make me greater!!!:
- only would i know how many peoples use this program!
-
- Compiled with VBCC.
- V0.8 (c) in 1995-2001 by Volker Barthelmann
-
- http://it.aminet.net/pub/aminet/dev/c/vbcc.lha
-
-
-
- BUGS
- ---
- -B1 ?OneLine don't "seems" to convert, but only in some files, a CR
- characters. Some programs, like EditPad and Pagestream©, shows this CRs.
- Other programs like CED4, Type (AmigaDOS), DOpus viewer and OneLine too,
- (by running again on the dest_file), don't detects and shows them.
- I think that they're Unicode CHRS.
- See History.
-
-
- I have tested many times OneLine and it hasn't crashed my system.
-
- But if you find a bug please send me an Email with the subject
- "OneLine bug" and tell me your configuration.
- (the file with the 'text frame' that generate the bug.
-
-
-
-
- History
- -------
- 0.4 -(internal) Detect and remove only CR & LF chrs (23-Dec-2001)
-
- 0.6 -(internal) Detect and remove TAB chrs
-
- 0.9 -(internal) Detect end remove doubles (or > 2) spaces
- (convert n spaces in 1 space chrs)
-
- -Added "Show converted text" option
-
- -Added "? number of columns" label
-
-
- 1.0 First public release. (04-Jan-2002)
-
- -Added "number of CR, LF, TAB and Spaces removed" info
-
- -I have checked the files that generate the bug "B1" with DPU and other
- Hex-Dump Tools too and i don't find any CR chrs after OneLine usage...
-
- -Speed improvement (compiled with VBCC 0.8 ---faaaster!!---)
-
-
- 1.1 -Added Overwrite request
-
- -OneLine now allocate the needed memory before starting conversion
-
- -Added 'File length' infos
-
- -Added '-d' option to switch on/off the "Erase multiples spaces" feature
-
- -Added 'Comma Optimize' option: erases the spaces before commas and add
- one space after (comma) if isn't;
-
- i.e. "number of CR , LF ,TAB and Spaces removed"
- ||
- \/
- "number of CR, LF, TAB and Spaces removed"
-
- -Some speed emprovements (if it's used without the options)
-
- ME!
- ---
- Vincenzo Barbarulo
- C.so Mazzini
- Cava de' Tirreni (SA) 84013
- ITALY
-
- barbarulo.vince@infinito.it
-
- P.S.:sorry if my english isn't good!!!!